import request from "@/utils/request";

export const checkOrderApi = (mode, obj) => {
  return request.get("/checkout/order", {
    params: {
      mode,
      delivery: 0,
      shopId: 0,
      couponId: 0,
      isUsePoints: 0,
      ...obj,
    },
  });
};
export const submitOrderApi = (mode, obj) => {
  return request.post("/checkout/submit", {
    mode,
    delivery: 0,
    shopId: 0,
    couponId: 0,
    isUsePoints: 0,
    ...obj,
  });
};
export const getMyOrderListApi = (dataType, page) => {
  return request.get("/order/list", {
    params: {
      dataType,
      page,
    },
  });
};
